#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

#import "ITPTapPressureGestureRecognizer.h"

@interface itpAppDelegate : NSObject <UIApplicationDelegate, UIAccelerometerDelegate, UIGestureRecognizerDelegate> {
  CAShapeLayer *_eventIndicator;
  
  IBOutlet UILabel *accLabel;
  
  IBOutlet UIProgressView *progressX;
  IBOutlet UIProgressView *progressY;
  IBOutlet UIProgressView *progressZ;
  
  UIAccelerometer *accelerometer;
  
  int _pressureLevel;
  NSMutableArray *_velocityArray;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UIView *eventView;
@property (readonly) CALayer *eventIndicator;
@property (nonatomic,retain) IBOutlet UILabel *eventInfoLabel;

@property (nonatomic, retain) IBOutlet UILabel *accLabel;

@property (nonatomic, retain) IBOutlet UIProgressView *progressX;
@property (nonatomic, retain) IBOutlet UIProgressView *progressY;
@property (nonatomic, retain) IBOutlet UIProgressView *progressZ;

@property (nonatomic, retain) UIAccelerometer *accelerometer;

- (void)addAcceleration:(UIAcceleration *)acceleration;

- (void)updatePressureLevel;
- (void)newPressureLevel:(int)pLevel;
- (void)resetPressureLevel;
- (float)pressureInterval;

@end
